package com.dingreading.cloud.soms.util;

/**
 * 枚举类型
 */
public class EnumFunction {

    public enum FunctionInfo {
        PUSH_FUNC("pushFunction", "剩余次数推送功能"),
        ;

        //成员变量
        private final String identify;
        private final String name;

        public String getIdentify() {
            return identify;
        }

        public String getName() {
            return name;
        }

        //构造方法
        FunctionInfo(String identify, String name) {
            this.identify = identify;
            this.name = name;
        }

        public static String getTypeName(String identify) {
            for (FunctionInfo functionInfo : FunctionInfo.values()) {
                if (functionInfo.getIdentify().equals(identify)) {
                    return functionInfo.getName();
                }
            }
            return "";
        }
    }
}
